package com.efast.dmom.mes.bean;

import java.util.List;

import com.efast.dmom.mes.bean.base.RouteRelateBaseBean;
import com.efast.dmom.mes.entity.RouteStepEntity;

/**
 * @author Aaron Liu
 *
 * @date:2020年1月7日
 */
public class RouteStep extends RouteRelateBaseBean<RouteStepEntity> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3143946580332077274L;

	private List<WorkCenter> workCenterList;

	private List<ProductionLine> prodLineList;

	private RouteOperation routeOperation = null;


	public List<WorkCenter> getWorkCenterList() {
		return workCenterList;
	}

	public void setWorkCenterList(List<WorkCenter> workCenterList) {
		this.workCenterList = workCenterList;
	}

	public List<ProductionLine> getProdLineList() {
		return prodLineList;
	}

	public void setProdLineList(List<ProductionLine> prodLineList) {
		this.prodLineList = prodLineList;
	}

	public RouteOperation getRouteOperation() {
		return routeOperation;
	}

	public void setRouteOperation(RouteOperation routeOperation) {
		this.routeOperation = routeOperation;
	}

	public boolean equals(Object obj) {

		boolean result = false;

		if (obj instanceof RouteStep) {

			if (this.getInnerData().getId() <= 0) {
				result = (this == (RouteStep) obj);
			} else {
				result = (this.getInnerData().getId() == ((RouteStep) obj).getInnerData().getId());
			}
		}
		return result;
	}
}
